import request from '@/utils/request'

// 查询用户借款列表
export function listMoneyen(query) {
  return request({
    url: '/system/moneyen/list',
    method: 'get',
    params: query
  })
}

// 查询用户借款详细
export function getMoneyen(borrowId) {
  return request({
    url: '/system/moneyen/' + borrowId,
    method: 'get'
  })
}

// 新增用户借款
export function addMoneyen(data) {
  return request({
    url: '/system/moneyen',
    method: 'post',
    data: data
  })
}

// 修改用户借款
export function updateMoneyen(data) {
  return request({
    url: '/system/moneyen',
    method: 'put',
    data: data
  })
}

// 删除用户借款
export function delMoneyen(borrowId) {
  return request({
    url: '/system/moneyen/' + borrowId,
    method: 'delete'
  })
}

// 导出用户借款
export function exportMoneyen(query) {
  return request({
    url: '/system/moneyen/export',
    method: 'get',
    params: query
  })
}
